{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>佣金记录</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <form method="get" name="formSearch" id="formSearch">
        <div class="sc-search-form">
            <dl>
                <dt>佣金类型</dt>
                <dd sc_type="no_spec">
                    {sctaglib:dcselect list=":dict_get('commission_type')" class="w-100" name="commission_type" value="$Request.param.commission_type" default="全部" /}
                </dd>
            </dl>
            <dl>
                <dt>状态</dt>
                <dd sc_type="no_spec">
                    {sctaglib:dcselect list=":dict_get('commission_state')" class="w-100" name="state" value="$Request.param.state" default="全部" /}
                </dd>
            </dl>
            <dl>
                <dt>订单号</dt>
                <dd sc_type="no_spec">
                    <input type="text" id="order_sn" name="order_sn" class="txt " value="{$Request.param.order_sn}">
                </dd>
            </dl>
            <dl>
                <dt>代理商</dt>
                <dd sc_type="no_spec">
                    <input type="text" id="inviter_name" name="inviter_name" class="txt " value="{$Request.param.inviter_name}">
                </dd>
            </dl>
            <dl>
                <dt>下级用户</dt>
                <dd sc_type="no_spec">
                    <input type="text" id="member_name" name="member_name" class="txt " value="{$Request.param.member_name}">
                </dd>
            </dl>

            <div class="btn_group">
                <input type="submit" class="btn" value="搜索">
                {if $filtered}
                <a href="{:url('shop/pointsLog')}" class="btn btn-default" title="{$Think.lang.sc_cancel}">{$Think.lang.sc_cancel}</a>
                {/if}
                总计： {$total_amount},
                本页总计：{$page_amount}
            </div>
        </div>
    </form>


    <table class="sc-default-table">
      <thead>
        <tr class="thead">
          <th class="align-center w-150">用户</th>
            <th class="align-center w-100">佣金</th>
            <th class="align-center w-100">代理商</th>
            <th class="align-center w-100">订单号</th>
            <th class="align-center w-100">类型</th>
            <th class="align-center w-100">状态</th>
            <th class="align-center w-120">{$Think.lang.addtime}</th>
          <th class="align-center">{$Think.lang.remark}</th>
        </tr>
      </thead>
      <tbody>
        {notempty name="list"}
        {foreach name="list" item="v" key="k" }
        <tr class="hover member">
          <td class="align-center">{$v.member_name}</td>
            <td class="align-center">{$v.amount}</td>
            <td class="align-center"> <a href="{:url('Shop/memberinfo',['member_id' => $v.inviter_id])}">{$v.inviter_name}</a></td>
            <td class="align-center">
                <a href="javascript:scLayerOpen('{:url('Order/show_order',['order_id'=>$v.order_id])}','查看实物订单-{$v.order_sn}')" >{$v.order_sn}</a>
            </td>
            <td class="align-center">{$v.commission_type|dict_convert='commission_type',###}</td>
            <td class="align-center">{$v.state|dict_convert='commission_state',###}</td>
            <td class="align-center">{$v.create_time|date='Y-m-d H:i',###}</td>
            <td class="align-center">{$v.remark}</td>
          
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
          <td colspan="11">{$Think.lang.sc_no_record}</td>
        </tr>
        {/notempty}
      </tbody>
      
    </table>
    {$show_page}

</div>
